package com.xhh.nphm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.system.domain.ScodeSmallEty;
import com.xhh.nphm.system.mapper.ScodeSmallDao;
import com.xhh.nphm.system.service.IScodeSmallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScodeSmallServiceImpl extends ServiceImpl<ScodeSmallDao, ScodeSmallEty> implements IScodeSmallService {
    @Autowired
    private ScodeSmallDao scodeSmallDao;

    /**
     * 交办意见列表数据
     * @param scodeSmallEty
     * @return
     */
    @Override
    public List<ScodeSmallEty> xdealDescJson(ScodeSmallEty scodeSmallEty) {
        return scodeSmallDao.xdealDescJson(scodeSmallEty);
    }

    /**
     * 交办意见 根据 csvalue 单个删除和多选删除
     * @param ids
     * @return
     */
    @Override
    public int deleteByIds(String[] ids) {
        return scodeSmallDao.deleteByIds(ids);
    }

    /**
     * 根据csvalue 查询交办意见
     * @param csvalue
     * @return
     */
    @Override
    public ScodeSmallEty selectCsValue(String csvalue) {
        return scodeSmallDao.selectCsValue(csvalue);
    }

    @Override
    public List<Integer> getCSOrd() {
        return scodeSmallDao.getCSOrd();
    }

    /**
     * 常用语管理列表数据
     *
     * @param scodeSmallEty 查询条件
     * @return 列表数据
     */
    @Override
    public List<ScodeSmallEty> scodeSmallListJson(ScodeSmallEty scodeSmallEty) {
        return getBaseMapper().scodeSmallListJson(scodeSmallEty);
    }


}
